package com.hqyj.demo.service;
import com.hqyj.demo.entity.Goods;
import com.hqyj.demo.entity.Purchase;
import com.hqyj.demo.entity.vo.PurchaseVo;
import com.hqyj.demo.utils.R;

import java.util.List;

public interface PurchaseService {
    //查询所有单据信息
    List<Purchase> selectAll();

    //模糊分页查询
    R selectPageLike(PurchaseVo purchaseVo);

    //根据ID查询单据详细信息
    Purchase selectById(Integer id);

    //初始化入库页面数据
    R stackPageInit();

    //根据类型查询商品
    R queryByTypeGoods(Integer typeId);

    //添加入库单据
    Boolean savePurchase(Purchase purchase, List<Goods> goodsList);
}
